package com.mashibing.service.impl;

import com.mashibing.internalcommon.dto.ResponseResult;
import com.mashibing.internalcommon.request.PointRequest;
import com.mashibing.internalcommon.response.TrackResponse;
import com.mashibing.remote.AddTrackClient;
import com.mashibing.remote.uploadTrackClient;
import com.mashibing.service.AddTrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddTrackServiceImpl implements AddTrackService {

    @Autowired
    private AddTrackClient addTrackClient;

    @Autowired
    private uploadTrackClient uploadTrackClient;

    @Override
    public ResponseResult<TrackResponse> addTrack(String tid) {
        return addTrackClient.addTrack(tid);
    }

    @Override
    public ResponseResult uploadTrack(PointRequest pointRequest) {
        return uploadTrackClient.uploadTrack(pointRequest);
    }
}
